package com.superm.utils;

import com.superm.entity.Emp;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;

public class  EmpContent {
    public static Emp EmpUtils(){
        //获取认证主体
        Subject subject = SecurityUtils.getSubject();
        Emp emp = (Emp)subject.getPrincipal();
        return emp;
    }
}
